package org.tailor



class Report {
    Orders ordersId
    Date fromDate
    Date toDate
    Regions regions
    Design design
    Fabric fabric
    Tailor tailor
    String type
    
    static constraints = {
        fromDate(nullable: false)
        toDate(nullable: false)
        regions()
        design()
        fabric()
        tailor()   
        type(inList: ["Sale","Profit","Transaction","Error"])
    }
}
